import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vite.dev/config/
export default defineConfig({
  base: './',
  plugins: [react()],
  server: {
    proxy: {
      "/unifiedApi":{
        target: "http://120.26.9.28:8001",
        changeOrigin: true,
        rewrite: (path) => path.replace(new RegExp("^/unifiedApi"), "/unifiedApi"),
      }
    }
  },
})
